<div class="uk-layui-form" >
	<div id="xiaoetopic">
		<h1>
			<span style="position: absolute;right: 5px; top: 0px;z-index: 100;">
				<button class="layui-btn layui-btn-sm green" style="margin: 5px 5px 0 0;" href="/apps/xiaoe/knowledge/topiclist.html?aiid=${aiid!''}&id=${id!}&type=${type!''}" data-toggle="load" data-target="#mainajaxwin" data-width="950" data-height="600" data-title="新增关联">
					添加关联
				</button>
			</span>
		</h1>
		<div class="row">
				<div class="co-lg-12" style="width: 100%">
					<div class="box default-box" >
						<table class="layui-table" lay-skin="line">
						<colgroup>
							<col width="70%">
							<col width="10%">
						</colgroup>
						  <thead>
						  	<#if topicsList?? && topicsList?size gt 0 >
							<tr>
							  	<th >标题<#if topicsList?? && topicsList?size gt 0>（${topicsList?size!''}）<#else>（0）</#if></th>
							  	<th ></th>
							</tr> 
							</#if>
						  </thead>
						  <tbody class="topic_item">
							<#if topicsList?? && topicsList?size gt 0 >
							<#list topicsList as topics>
							<tr>
							  <td>${topics.title!''}</td>
							  <td>
							  	<a href="/apps/xiaoe/knowledge/topicre/delete.html?aiid=${aiid!''}&id=${id!}&type=${type!''}&topicsid=${topics.id!''}" data-toggle="tip" data-title="请确认是否移除该知识？" data-target="#mainajaxwin" data-callback="execDelAction">
						  			<i class="layui-icon" style="color:red;">ဆ</i>
						  			移除
						  		</a>
							  </td>
							</tr>
							</#list>
							<#else>
								<div class="ukefu-empty" style="height: 220px;">
									<i class="layui-icon"></i>
									<div style="">
										还没有关联知识记录
									</div>
								</div>
							</#if>
						  </tbody>
						</table>
						<div class="layui-form-button" >
							<div class="layui-button-block">
								<button class="layui-btn layui-btn-primary" onclick="layer.closeAll();">关闭</button>
							</div>
						</div>
					</div>
				</div>
			</div>
	</div>
</div>
<script>
layui.use('form', function(){
	var form = layui.form;
	form.render(); //更新全部
});
</script>
<script>
		function execDelAction(url , target){
			loadURL(url, target) ;
			
		}
</script>